#ifndef __MONEY__H_
#define __MONEY__H_

#include <QString>

//class Franc;
//class Dollar;

class Money
{
public:
	Money(int amount, QString currency);
	~Money();

	int amount;
	QString m_currency;

	bool equals(Money* object);

	//virtual Money* times(int multiplier) = 0;
	Money* times(int multiplier)
	{
		//return NULL;
		return new Money(amount * multiplier, m_currency);
	}

	Money* plus(Money* addend)
	{
		return new Money(amount + addend->amount, m_currency);
	}

	//virtual QString getClassName() = 0;

	static Money* dollar(int amount);

	static Money* franc(int amount);

	 QString currency();
};

#endif

